#ifndef MYBUTTON_H
#define MYBUTTON_H

#include <QPushButton>
#include <QPropertyAnimation>

class MyButton : public QPushButton
{
        Q_OBJECT
    public:
        //explicit MyButton(QWidget *parent = nullptr);
        MyButton(QString normalImg, QString pressImg = "");
        void zoom1();
        void zoom2();
        void mousePressEvent(QMouseEvent *);
        void mouseReleaseEvent(QMouseEvent *);

    private:
        QString normalImgPath;
        QString pressImgPath;
        QPropertyAnimation * animation;
        QPixmap pix;

    signals:

};

#endif // MYBUTTON_H
